package com.itheima.reggie.dao;

import com.itheima.reggie.entity.SetmealDish;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface SetmealDishDao {

    void batchSave(@Param("dishList") List<SetmealDish> dishList);

    void deleBySetMealIds(@Param("ids") List<Long> ids);

    @Select("select * from setmeal_dish where setmeal_id =#{id} ")
    List<SetmealDish> findBySetmealId(Long id);
}
